package com.bjpowernode.crm.settings.service.impl;

import com.bjpowernode.crm.settings.domain.User;
import com.bjpowernode.crm.settings.mapper.UserMapper;
import com.bjpowernode.crm.settings.service.LoginService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

/**
 * ClassName: LoginServiceImpl<br/>
 * Package: com.bjpowernode.crm.settings.service.impl<br/>
 * Description: <br/>
 * Date: 2022/6/11 20:12<br/>
 * Auther:对的我写的，错的我同事写的<br/>
 */
@Service
public class LoginServiceImpl implements LoginService {

    @Resource
    private UserMapper userMapper;
    @Override
    public User selectUserByUsernameAndPassword(Map<String, Object> loginMap) {
        return userMapper.selectUserByUsernameAndPassword(loginMap);
    }

    @Override
    public User selectUserByUsername(String loginAct) {
        return userMapper.selectUserByUsername(loginAct);
    }
}
